package com.czmh.etc.onlinepubsys.request.cmg;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Copyright (C), 2023
 *
 * @Author: lyk
 * Date: 2023/07/05
 * FileName: NewAddAgentRequest
 * Description:
 */
@ApiModel("招商局-录入经办人信息-对接请求对象")
@Data
public class NewAddAgentRequest {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @JSONField(serialize = false)
    private String userId; //用户ID

    @ApiModelProperty("订单id")
    @JSONField(serialize = false)
    private String orderId; //订单id

    @ApiModelProperty(notes = "业务流水号,SPI合作服务商定义业务流水号,规则:渠道号+渠道方唯一编码", required = true)
    private String businessFlowNo;

    @ApiModelProperty(notes = "单位部门/分支机构", required = true)
    private String department;

    @ApiModelProperty(notes = "证件号", required = true)
    private String idNum;

    @ApiModelProperty(notes = "单位用户证件类型", required = true)
    private String idType;

    @ApiModelProperty(notes = "时间戳", hidden = true)
    private Long time;

    @ApiModelProperty(notes = "授权访问平台终端渠道编号,招商畅行卡微信小程序:5713498500")
    private String toAuthAccessNo;

    @ApiModelProperty(notes = "跳转招商平台客户端id，获取招商公众服务平台访问令牌接口中获取")
    private String toClientKey;

    @ApiModelProperty(notes = "单位经办人证件号码")
    private String agentIdNum;

    @ApiModelProperty(notes = "单位经办人证件类型0-身份证； 1-军官证；2-护照；3-港澳通行证；4-台湾通行证")
    private Integer agentIdType;

    @ApiModelProperty(notes = "单位经办人")
    private String agentName;

    @ApiModelProperty(notes = "单位经办人手机号码")
    private String agentTel;

    @ApiModelProperty(notes = "是否允许用户在招商平台应用修改department、agentIdNum、agentIdType,0-不允许 1-允许,设置不允许时，招商平台应用此次业务流程将限制用户修改, 默认允许修改,示例值(1)")
    private Integer isLimitModifyKey;

    @ApiModelProperty(notes = "客户端唯一码，accessNo+随机编码", hidden = true)
    private String clientKey;

    @ApiModelProperty("用户ID")
    private String csUserNo;

    @ApiModelProperty("证件正面照url 调用文件上传接口返回")
    private String agentFrontImgUrl; //证件正面照url

    @ApiModelProperty("证件背面照url 调用文件上传接口返回")
    private String agentBackImgUrl; //证件背面照url
}
